$(document).ready(function(){
    var options = {
          useEasing : true, 
          useGrouping : true, 
          separator : '', 
          decimal : '.', 
          prefix : '', 
          suffix : '' 
        };
    var time = new CountUp("timer", 0, 30, 0, 2.5, options);
    var time_1 = new CountUp("timer-1", 0, 500, 0, 2.5, options);
    var time_2 = new CountUp("timer-2", 0, 100, 0, 2.5, options);
    var time_3 = new CountUp("timer-3", 0, 8, 0, 2.5, options);
    var time_4 = new CountUp("timer-4", 0, 1000, 0, 2.5, options);
    var time_5 = new CountUp("timer-5", 0, 100, 0, 2.5, options);
    var time_6 = new CountUp("timer-6", 0, 10, 0, 2.5, options);
    $(window).scroll(function(){
        var scrollTop = $(window).scrollTop();
        if(scrollTop >= 200) {
            time.start();
            time_1.start();
            time_2.start();
            time_3.start();
            $(".quality-channels .right").css("animation-play-state", "running");
        }
        if(scrollTop >= 300) {
            time_4.start();
            time_5.start();
            time_6.start();
        }
        if(scrollTop >= 940) {
            $(".diversification .left,.diversification .right").css("animation-play-state", "running");
        }
        if(scrollTop >= 1667) {
            $(".heat .left,.heat .right").css("animation-play-state", "running")
        }
    })
})